﻿using System.Data.Entity;

namespace eLoan.Models
{
    public class DatabaseContext : DbContext
    {
        public DatabaseContext()
            : base("DefaultConnection")
        { }

        public DbSet<Agent> Agents { get; set; }
        public DbSet<Branch> Branches { get; set; }
        public DbSet<Borrower> Borrowers { get; set; }
        public DbSet<BorrowerCoMaker> BorrowerCoMakers { get; set; }
        public DbSet<BorrowerCollateral> BorrowerCollaterals { get; set; }
        public DbSet<BorrowerIdentification> BorrowerIdentifications { get; set; }
        public DbSet<BorrowerReference> BorrowerReferences { get; set; }
        public DbSet<BorrowerSavings> BorrowerSavings { get; set; }
        public DbSet<Prospect> Prospects { get; set; }
        public DbSet<ChargeType> ChargeTypes { get; set; }
        public DbSet<LoanCoMaker> LoanCoMakers { get; set; }
        public DbSet<LoanCollateral> LoanCollaterals { get; set; }
        public DbSet<Loan> Loans { get; set; }
        public DbSet<LoanPayment> LoanPayments { get; set; }
        public DbSet<LoanPaymentSchedule> LoanPaymentSchedules { get; set; }
        public DbSet<LoanType> LoanTypes { get; set; }
        public DbSet<LoanDeduction> LoanDeductions { get; set; }
        public DbSet<LoanJournal> LoanJourals { get; set; }
        public DbSet<LoanPenalty> LoanPenalties { get; set; }
        public DbSet<PaymentType> PaymentTypes { get; set; }
        public DbSet<Notification> Notifications { get; set; }
        public DbSet<PrintedCheque> PrintedCheques { get; set; }
        public DbSet<CollectionReconciliation> CollectionReconciliations { get; set; }
        public DbSet<User> Users { get; set; }
        public DbSet<UserPageAccess> UserPageAccess { get; set; }
        public DbSet<Bank> Banks { get; set; }

        public DbSet<UserProfile> UserProfiles { get; set; }
    }
}